{__NOLAYOUT__}
<include file="Index:header" />
<div class="pad-10">
  <div class="content-menu ib-a blue line-x">添加管理员</div>
  <div class="col-auto">
    <div class="col-1">
      <div class="content pad-6">
		 	
			<form name="myform" class="myform" method="post" action="__APP_PATH__index.php?g=Admin&m=Manager&a=add"><!-- Form -->
          <table width="98%" cellspacing="0" class="table_form">
				  
            <tbody>
					<tr>
						<th style="width: 120px;">用户名: </th>
                        <td style="width: 120px;">
 						<input class="mediumfield" id="username" name="username" type="text" ajaxurl="__APP_PATH__index.php?g=Admin&m=Manager&a=public_checkname_ajx" datatype="s6-18" nullmsg="请输入中文名！" errormsg="用户名至少6个字符,最多18个字符！" value="" />
 						</td>
                        <td >
                        <div class="Validform_checktip">用户名至少6个字符,最多18个字符</div>
					</td>
                    </tr>
					<tr>
						<th>真实姓名: </th><td>
 						<input class="mediumfield"  name="truename" type="text" datatype="z2-4" nullmsg="请输入您的真实姓名(中文)！" errormsg="真实姓名为2~4个中文字符！" value="" />
                    </td>
                        <td>
                        <div class="Validform_checktip">请输入您的真实姓名</div>
					</td>
                    </tr>
					<tr>
						<th>密&nbsp;&nbsp;码: </th><td>
 						<input class="mediumfield" name="password" id="password" datatype="*6-16" type="password" value="" nullmsg="请设置密码！" errormsg="密码范围在6~16位之间！" />
                    </td>
                        <td>

                            <div class="Validform_checktip">请输入6-16字母或数字</div>
					</td>
                    </tr>
					<tr>
						<th>重复密码: </th><td>
 						<input class="mediumfield" id="password2" name="password2" type="password" value=""   datatype="*" recheck="password" nullmsg="请再输入一次密码！" errormsg="您两次输入的账号密码不一致！"/>
                    </td>
                        <td>
                        <div class="Validform_checktip">再次输入密码</div>
					</td>
                    </tr>
					<tr>
						<th>邮&nbsp;&nbsp;箱: </th><td>
 						<input class="mediumfield" id="email"  datatype="e" name="email" type="text" value="" nullmsg="输入有效的邮箱地址！" errormsg="您输入的邮箱地址格式不符！" />
                    </td>
                        <td>
                        <div class="Validform_checktip">输入有效的邮箱地址</div>
					</td>
                    </tr>
					<tr>
						<th>所属角色: </th><td>
						<select name="roleid"  datatype="n" nullmsg="选择相应角色！" errormsg="请选择相应角色！">
                            <option >请选择</option>
							<volist name="rolelist" id="role">
							<option value="{$role.id}">{$role.name}</option>
							</volist>
						</select>
                    </td>
                        <td>
                        <div class="Validform_checktip">请选择角色</div>
					</td>
                    </tr>
					<tr>
					 <td></td>
					 <td>
						<input class="button" name="dosubmit" type="submit" value="提交" />
					</td>
                    </tr>
				</tbody>
</table>
</form>
      </div>
    </div>
  </div>
</div>

<script type="text/javascript">
    $(function(){
        //$(".registerform").Validform();  //就这一行代码！;

        $(".myform").Validform({
            tiptype:2
        });
        //传入自定义datatype类型【方式一】;
        $.extend($.Datatype,{
            "z2-4" : /^[\u4E00-\u9FA5\uf900-\ufa2d]{2,4}$/
        });

    })

</script>

<include file="Index:content_footer" />